package SerialCom;

/**
 * Class description
 *
 *
 * @version    Enter version here..., 09/01/20
 * @author     Enter your name here...
 */
class CommProt {

    /** Field description */
    byte cBufPtr;
    /* Pointer in Buffer */ /** Field description */
    char cCalcCrc;
    /* Our Calculated  Crc byte */ /** Field description */
    RS485Status.errState cError;
    /* Packet  Error */ /** Field description */
    char cOurAddr;
    /* Our address */ /** Field description */
    RS485Status cRS485State;
    /* state of receiveing */ /** Field description */
    boolean isPacketForMe;
    /** Field description */
    boolean isPacketReady;
    private RS485Status rs485Status ;

    public CommProt(char Address) {
        super();
        this.cRS485State =  new RS485Status();
        this.isPacketForMe = false;
        this.isPacketReady = false;
        this.cOurAddr = Address;
        rs485Status = new RS485Status();
        this.cError = rs485Status.okStatus();
        
    }
}
